#ifndef __UARTCOMMON_H__
#define __UARTCOMMON_H__
#include "stm32f10x.h"
typedef struct
{
	u8 *datap;
	u32 datalen;
}UART_RXINFO;



typedef struct
{	
	void (*PrintChar)(u8);
	void (*PrintStrlen)(u8*,u16);
	void (*Printf)(char* fmt,...);	
	void (*StoreRxPkg)(void);
	u8   (*GetOneRxPkg)(UART_RXINFO *pkginfo,u32 timetowait_ms);
	void (*ReleaseOneRxPkg)(UART_RXINFO *pkginfo);
	void (*ReleaseAllRxPkg)(void);
}UARTSTRUCT;
#endif


